#---------------------------------------------------------------------------
# 20130924 study of build shared library
#---------------------------------------------------------------------------

include ../../../config.mk

MODULE = libsotest.so
TARGET = ${TARGET_LIB}/${MODULE}

#define pass to source file
TOOL_NAME = testGenSo

HEADERS = -I$(GCC_HEADER) -I. 

#LIBS = -L$(GCC_LIB) -L$(SRC_LIB) -L. -lpthread -lstdc++ 

OBJS =	first_shared.o

all : ${TARGET}

${TARGET} : $(OBJS)
	$(GCC)  -shared -o $(TARGET) $(OBJS)
	cp $(TARGET) .

.cpp.o :
	$(GCC) $(CFLAGS_SO) -c -Wno-deprecated -DTOOL_NAME=\"$(TOOL_NAME)\" $< -o $@ $(HEADERS)

clean:	
	rm -f $(OBJS) $(MODULE)
